<?php require_once('../../core/import.php');?>
<?php User::Permission('DM_SUB_LIST'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/checkbox/import.checkbox.js"></script>
    <script type="text/javascript" src="../../scripts/components/zebra_table/import.zebra_table.js"></script>
    <script type="text/javascript" src="scripts/dm_subscription.list.js"></script>
</head>

<body>
    <table width="98.5%" id="List" border="0" cellpadding="0" cellspacing="0" class="List">
    <thead>
    <tr>
        <th width="5%" height="25" align="center" valign="middle">选取</th>
        <th width="30%" align="left" valign="middle">&nbsp;公司名称</th>
        <th width="10%" align="center" valign="middle">联系人</th>
        <th width="10%" align="center" valign="middle">电话号码</th>
        <th width="10%" align="center" valign="middle">电子邮箱</th>
        <th width="15%" align="center" valign="middle">订阅日期</th>
        <th width="9%" align="center" valign="middle">操作</th>
    </tr>
    </thead>    
    <tbody>
    <form id="Form1" name="Form1" method="post" action="dm_subscription.list.action.batch_delete.php">
    <?php
        #获取数据
        $Data=DB::GetData('select ID,CompanyName,Linkman,PhoneNumber,Email,Datetime from dm_subscription order by ID desc limit ?,15');
        foreach($Data['Record'] as $Row)
        {
    ?>
    <tr>
        <td height="25" align="center" valign="middle">
            <input id="ID" name="ID[]" type="checkbox" value="<?php echo $Row['ID']; ?>" class="Cursor_Pointer" />
        </td>
        <td height="25" valign="middle">
            &nbsp;<a href="dm_subscription.edit.php?id=<?php echo $Row['ID']; ?>"><?php echo $Row['CompanyName']; ?></a>
        </td>
        <td height="25" align="center" valign="middle">
            <?php echo $Row['Linkman'];?>
        </td>
        <td height="25" align="center" valign="middle">
            <?php echo $Row['PhoneNumber'];?>
        </td>
        <td height="25" align="center" valign="middle">
            <?php echo $Row['Email'];?>
        </td>
        <td height="25" align="center" valign="middle">
            <?php echo $Row['Datetime'];?>
        </td>
        <td height="25" align="center" valign="middle">
            <a href="dm_subscription.edit.php?id=<?php echo $Row['ID']; ?>">编辑</a>
            <a href="javascript:mconfirm_delete('dm_subscription.list.action.delete.php?id=<?php echo $Row['ID']?>');">删除</a>
        </td>
    </tr>
    <?php
        }
    ?>
    </form>
    </tbody>    
    <tfoot>
    <tr>
        <td height="25" colspan="7" align="center" valign="middle">
            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="55%" align="left">
                <?php
                    PagerFactory::Create('Simple')->Display($Data);
                ?>
                </td>
                <td width="45%" align="right">
                    <span id="SelectAll" class="Cursor_Pointer">全选</span>/<span id="UnSelectAll" class="Cursor_Pointer">全不选</span>
                    选中项：<span id="Delete" class="Cursor_Pointer">删除</span>            
                </td>
            </tr>
            </table>    
         </td>
	</tr>
    </tfoot>    
    </table>
</body>
</html>